package com.yike.product.convert;

import com.yike.product.api.vo.GoodsFeignVo;
import com.yike.product.entity.Goods;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface GoodsFeignConvert {

    GoodsFeignConvert INSTANCE = Mappers.getMapper(GoodsFeignConvert.class);

    List<GoodsFeignVo> convert(List<Goods> goodsList);

    GoodsFeignVo convert(Goods goods);

}
